package es.abredatos.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class GetBookDetailsEvent extends GwtEvent<GetBookDetailsEventHandler> {

	public static Type<GetBookDetailsEventHandler> TYPE = new Type<GetBookDetailsEventHandler>();
	private String id;

	public GetBookDetailsEvent(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	@Override
	protected void dispatch(GetBookDetailsEventHandler handler) {
		handler.onGetBookDetailsEvent(this);
	}

	@Override
	public Type<GetBookDetailsEventHandler> getAssociatedType() {
		return TYPE;
	}

}
